package com.stylefeng.guns.modular.pay.exception;

public enum ResultEnum {
	SUCCESS("0000", "成功"), 
	MCH_UNREGISTER("mch.unregister", "商户尚未注册"), 
	ERROR_VALIDATE("error.validate", "业务校验错误"), 
	ORDER_REPEAT("order.repeat", "订单重复"),
	MCH_UNAPPLICATION("mch.unapplication", "商户尚未进件"),
	MCH_APPLICATION_UNSUCCESS("mch.application.unsuccess", "商户进件尚未成功"),
	UNKONW_EXCEPTION("unkonw.exception", "商务业务尚未开通"),
	MCHBUS_UNOPEN("mchbus.unopen", "商务业务尚未开通"),
	CHANNEL_RESPONSE_ERROR("channel.response.error","渠道返回数据异常"), 
	RESPONSE_ERROR("response.error","渠道返回错误"), 
	MCH_REPEAT_REGISTER("mch.repeat.register","商户重复注册"), 
	MCH_BUS_REPEAT("mch.bus.repeat","业务重复开通"),
	PARAMS_ERROR("params.error","参数错误"),
	ORDER_NOT_EXIST("order.not.exist","订单不存在");
	
	private String code;

	private String msg;

	ResultEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
}
